package com.sport.system.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sport.common.annotation.Excel;
import com.sport.common.core.domain.BaseEntity;

/**
 * 比赛报名对象 sport_item_user
 *
 * @author wyd
 * @date 2022-04-07
 */
public class SportItemUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private String id;

    /**
     * 用户登陆名
     */
    @Excel(name = "用户登陆名")
    private String userName;

    /**
     * 用户姓名
     */
    @Excel(name = "用户姓名")
    private String userNickname;

    /**
     * 用户电话
     */
    @Excel(name = "用户电话")
    private String userPhone;

    /**
     * 用户所在班级
     */
    @Excel(name = "用户所在班级")
    private String userDept;

    /**
     * 比赛项目id
     */
    @Excel(name = "比赛项目id")
    private String itemId;

    /**
     * 比赛项目名称
     */
    @Excel(name = "比赛项目名称")
    private String itemName;

    /**
     * 报名时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "报名时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date applyTime;

    /**
     * 比赛成绩
     */
    @Excel(name = "比赛成绩")
    private String score;

    /**
     * 项目类型
     */
    @Excel(name = "项目类型")
    private String itemType;

    /** 排名 */
    @Excel(name = "排名")
    private Integer ranking;

    /** 积分 */
    @Excel(name = "积分")
    private Integer points;

    public String getItemType() {
        return itemType;
    }

    public void setItemType(String itemType) {
        this.itemType = itemType;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserNickname(String userNickname) {
        this.userNickname = userNickname;
    }

    public String getUserNickname() {
        return userNickname;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserDept(String userDept) {
        this.userDept = userDept;
    }

    public String getUserDept() {
        return userDept;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getItemId() {
        return itemId;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public String getItemName() {
        return itemName;
    }

    public void setApplyTime(Date applyTime) {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() {
        return applyTime;
    }

    public void setScore(String score) {
        this.score = score;
    }

    public String getScore() {
        return score;
    }

    public void setRanking(Integer ranking)
    {
        this.ranking = ranking;
    }

    public Integer getRanking()
    {
        return ranking;
    }
    public void setPoints(Integer points)
    {
        this.points = points;
    }

    public Integer getPoints()
    {
        return points;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userName", getUserName())
                .append("userNickname", getUserNickname())
                .append("userPhone", getUserPhone())
                .append("userDept", getUserDept())
                .append("itemId", getItemId())
                .append("itemName", getItemName())
                .append("applyTime", getApplyTime())
                .append("score", getScore())
                .append("itemType", getItemType())
                .append("ranking", getRanking())
                .append("points", getPoints())
                .toString();
    }
}
